<?
	require_once('../Extras/Functions.php');
	CheckSession();
	$UserID = $_SESSION['s_UserID'];
	
	$mysqli = ConectObj();
	$query = "SELECT * FROM cols WHERE UserID='$UserID'";
	$Cols = $mysqli->query($query);
	
?>
<script type="text/javascript">
	$('#Header').animate({height:0,opacity:0},{duration:1000}).animate({height:60,opacity:0.9,backgroundPosition:"355px 0"},{duration:500});
	$('#SecIzq').animate({width:0,opacity:0},{duration:1000});
	$("#SecPri").animate({width:960},{duration:1000});
	$("#SecDer").animate({width:0,opacity:0},{duration:1000});
</script>

<div align="center">
	<p><?=LANG_Inicio_Bienvenido?> <? echo $_SESSION['s_User'] ?></p>
	
	<table>
		<thead>
			<tr><th colspan="5"><?=LANG_MisColonias?>
		</thead>
		<tbody>
			<tr><td colspan="5">
			<tr><th><?=LANG_Colonia?></th><th><?=LANG_Imperio?></th><th><?=LANG_Civilizacion?></th><th><?=LANG_Personalidad?></th><th><?=LANG_Tierra?></th></tr>
			<?
				while($Col = $Cols->fetch_assoc()){
					echo"\n<tr><td><a href='#$Col[Colonia]' onclick=cCont('#SecPri','Game/Trono.php?ColID=$Col[ID]')>$Col[Colonia]</a><td>$Col[Imperio]<td>$Col[Civil]<td>$Col[Pers]<td>$Col[Tierra]";
				}
			?> 
			<tr><td colspan="5">
			<tr><th colspan="5"><a href='#' onclick=cCont('#SecPri','Game/NuevaCol.php')><?=LANG_NuevaColonia?> (Max 3)</a>
		</tbody>
	</table>
</div>